$OpenBSD: patch-fixincludes_inclhack_def,v 1.2 2015/01/08 20:23:21 pascal Exp $
--- fixincludes/inclhack.def.orig	Sat Dec 13 18:47:30 2014
+++ fixincludes/inclhack.def	Mon Jan  5 22:42:05 2015
@@ -3226,9 +3226,9 @@ fix = {
     mach      = "*-*-solaris2.*";
     files     = complex.h;
     sed	      = "/#if[ \t]*!defined(__cplusplus)/c\\\n"
-    		"#ifdef\t__cplusplus\\\nextern \"C\" {\\\n#endif";
+    		"#ifdef\t__cplusplus\\\nextern \"C\" {\\\n#endif\\\n";
     sed	      = "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n"
-		"#ifdef\t__cplusplus\\\n}\\\n#endif";
+		"#ifdef\t__cplusplus\\\n}\\\n#endif\\\n";
     test_text = "#if !defined(__cplusplus)\n"
 		"#endif	/* !defined(__cplusplus) */";
 };
